using ETestIT.Core;
using FluentNHibernate.Mapping;

namespace ETestIT.Data.NHibernateMaps
{
    public class ResumeMap : ClassMap<Resume>
    {
        public ResumeMap()
        {
            Id(x => x.Id)
                .WithUnsavedValue(0)
                .GeneratedBy.Identity();

            Map(x => x.Name); // Name { get; set; }
            Map(x => x.Content).WithLengthOf(2147483647); // Content { get; set; }
            Map(x => x.ContentType); // public virtual string ContentType { get; set; }
            Map(x => x.Version); //Version { get; set; }

            SetAttribute("lazy", "false");
        }
    }
}